<template>
  <div>
    <van-tabbar v-model="active">
      <van-tabbar-item to="/home" icon="wap-home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/commodity" icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item to="/cart" icon="shopping-cart-o">购物车</van-tabbar-item>
      <van-tabbar-item to="/personal" icon="friends-o">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'Tabbar',
  data(){
    return{
    }
  },
  computed: {
    active:{
      get: function () {
        return this.$route.meta.activeNum;
      },
      set: function () {},
    }
  }
}
</script>

<style lang="less" scoped>
</style>